package com.util;

import java.util.ArrayList;
import java.util.List;

public class ListUtil {

	public static <T> void copyList(List<T> want, List<T> give) {
		if (!TextUtil.isValidate(give)) {
			return;
		}
		if (want == null) {
			want = new ArrayList<>();
		} else {
			want.clear();
		}
		for (int i = 0; i < give.size(); i++) {
			want.add(give.get(i));
		}
	}
}
